{extend name="base" /} {block name="body"}
<div class="layui-body">
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li class="layui-this">余额查询</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">
				<form class="layui-form layui-form-pane" action="{:url('money')}" method="get">
					<div class="layui-inline">
						<label class="layui-form-label">用户账号</label>
						<div class="layui-input-inline">
							<input type="text" name="keyword" value="{$keyword}" placeholder="请输入用户账号" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<select name="ziduan">
							<option value="id" {if $ziduan=='id' }selected{/if}>会员ID</option>
							<option value="mobile" {if $ziduan=='mobile' }selected{/if}>会员账号</option>
						</select>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">分类</label>
						<div class="layui-input-inline">
							<input type="text" name="title" value="{$title}" placeholder="请输入分类" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">标题关键字</label>
						<div class="layui-input-inline">
							<input type="text" name="note" value="{$note}" placeholder="请输入标题关键字" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">买/卖：</label>
						<div class="layui-input-inline">
							<select name="type">
								<option value="">全部</option>
								<option value="1" {if $type==1}selected{/if}>收入</option>
								<option value="2" {if $type==2}selected{/if}>支出</option>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">开始时间</label>
						<div class="layui-input-block">
							<input type="text" id="datetime2" name="start_time" value="{$start_time}" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">结束时间</label>
						<div class="layui-input-block">
							<input type="text" id="datetime3" value="{$end_time}" name="end_time" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<button class="layui-btn">搜索</button>
					</div>
					<div class="layui-inline">
						<a class="layui-btn" onclick="doSearch()">查询矿机推广</a>
					</div>
				</form>
				<hr>
				<table class="layui-table">
					<thead>
						<tr>
							<th>会员ID</th>
							<th>会员账号</th>
							<th>金额</th>
							<th>收入/支出</th>
							<th>分类</th>
							<th>标题</th>
							<th>时间</th>
						</tr>
					</thead>
					<tbody>
						{foreach name="list" item="vo"}
						<tr>
							<td>{$vo.uid}</td>
							<td>{$vo.mobile}</td>
							<td>{$vo.num}</td>
							<td>{if $vo.type==1}收入{else/}支出{/if}</td>
							<td>{$vo.title}</td>
							<td>{$vo.note}</td>
							<td>{$vo.add_time}</td>
						</tr>
						{/foreach}
					</tbody>
				</table>
				<!--分页-->
				{$list->render()}
			</div>
		</div>
	</div>
</div>
<script>
	// 定义全局JS变量
	var GV = {
		current_controller: "adminjcb/{$controller}/money"
	};
	function doSearch(){
		window.location.href='/adminjcb/order/money/title/推广奖励/note/购买';
	}
</script>
{/block}